package com.treasure.common.types;

import com.treasure.common.exception.ParameterException;
import lombok.Getter;
import org.apache.commons.lang3.StringUtils;

/**
 * @author sunhongmin
 * @date 2023/9/13 21:41
 * @description
 */
@Getter
public class CorpInvitationCode {

    private final String value;

    public CorpInvitationCode(String value) {
        if (StringUtils.isBlank(value)) {
            throw new ParameterException("企业/高校认证码不能为空");
        }

        this.value = value;
    }

}
